import Vue from 'vue';
import Router from 'vue-router';
import Index from '../pages/index.vue';
import Detail from '../pages/detail.vue';

Vue.use(Router)

export default new Router({
    routes: [
        {
            path: '/',
            name: 'index',
            component: Index
        },
        {
            path: '/detail',
            name: 'detail',
            component: Detail
        }
    ]
})
